<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.sun.xml.internal.fastinfoset.Encoder"%>
<%@ taglib prefix="s" uri="/struts-tags"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>北京天山--我的评价记录</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript" src="/js/common/jquery-1.4.2.min.js"></script> 	
<link href="/usercenter/css/usercenter.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="/usercenter/js/usercenter.js"></script>
<script language="javascript">
function sortPage(val) {
	window.location.href="/usercenter/getInvestigationList.do?currentPage="+val
}
</script>
</head>
	
<body>
<div class="main">
	<div class="maintable">
	    <table class="tblist" width="730" border="1" bordercolor="#e7e7e7" >
		  	<tr>
			  	<td colspan="7" class="maintitle" >
					<div class="maintitleimg"></div>
					<div class="maintitle_a">我的评价记录列表</div>
			  	</td>
      	  	</tr>				
		  <tr height="30" bgcolor="#FFFFFF" >
		    <td colspan="7">
		    	<div style="float:left; width:20%;" class="title" >评价记录编码</div>
		    	<div style="float:left; width:10%;" class="title" >评价日期</div>
		    	<div style="float:left; width:10%;" class="title" >供方分类</div>
		    	<div style="float:left; width:10%;" class="title" >供方资质</div>
		    	<div style="float:left; width:20%;" class="title" >固定资产</div>
		    	<div style="float:left; width:10%;" class="title" >审核状态</div>
		    	<div style="float:left; width:20%;" class="title" >操作</div>
		    </td>
		  </tr>		
		  <s:iterator value="sinvlist" id="sinvval" >
		  <tr height="30">
		    <td width="20%" align="center" ><a href="/usercenter/editInvestigation.do?id=${sinvval.investigationid }" >${sinvval.code }</a></td>
		    <td width="10%" align="center" ><s:date name="#sinvval.investigationTime" format="yyyy-MM-dd" /></td>
		    <td width="10%" align="center" >${sinvval.type }</td>
		    <td width="10%" align="center" >${sinvval.qualification }</td>
		    <td width="20%" align="center" >${sinvval.fixedAssets }</td>
		    <td width="10%" align="center" ><s:if test="#sinvval.auditState == 1">审核通过</s:if><s:else >未通过</s:else></td>
		    <td width="20%" align="center" >
		    	<a href="/usercenter/editInvestigation.do?id=${sinvval.investigationid }" >编辑</a>
		    	<a href="/usercenter/deleteInvestigation.do?id=${sinvval.investigationid }" onclick="return deleteConfirm();" >删除</a>
	    	</td>
		  </tr>	  
		  </s:iterator>		  
		  	<tr height="30" >
			  	<td align="center" colspan="7" >当前第${pages.currentPage }页，共${pages.pageCount }页${pages.allNum }条记录 			  	
					<s:if test="pages.currentPage > 1" ><a href="#" onclick="sortPage(1);">首页</a></s:if>
					 <s:else>首页 </s:else>|
					<s:if test="pages.currentPage > 1" ><a href="#"  onclick="sortPage(${pages.currentPage-1});">上一页</a></s:if>
					 <s:else>上一页 </s:else>|
					<s:if test="pages.currentPage < pages.pageCount" ><a href="#"  onclick="sortPage(${pages.currentPage+1 });">下一页</a> </s:if>
					 <s:else>下一页 </s:else>|
					<s:if test="pages.currentPage < pages.pageCount" ><a href="#"  onclick="sortPage(${pages.pageCount });">末页</a> </s:if>
					 <s:else>末页</s:else>
				</td>
      	  	</tr>
        </table>
	</div>
</div>
</body>
</html>